from rest_framework import serializers
from . import models

# 分类
class CategorySerializer(serializers.ModelSerializer):

    class Meta:
        model = models.Cagegory
        fields="__all__"


# 商品
class GoodsSerializer(serializers.ModelSerializer):

    class Meta:
        model = models.Goods
        fields="__all__"